{*
* 2007-2011 PrestaShop 
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 8084 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<div id="updateregistration">
	{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='groupbuyingreg'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Group buying registration' mod='groupbuyingreg'}{/capture}
	{include file="$tpl_dir./breadcrumb.tpl"}

	<form method="post" action="{$base_dir_ssl}modules/groupbuyingreg/updateregistration.php?id_group_buying_registration={$id_group_buying_registration}" class="std">
	<h3>{l s='Edit your group buying registration' mod='groupbuyingreg'}</h3>
	{include file="$tpl_dir./errors.tpl"}
	<fieldset>
		<p class="required select">
			<label for="group_buying_company">{l s='Group buying company' mod='groupbuyingreg'}</label>
			<select name="group_buying_company" id="group_buying_company" style="width:163px">
				<option value="">-</option>
				{foreach from=$group_buying_companies item=company}
						<option value="{$company.id_group_buying_company}" {if ($id_group_buying_company == $company.id_group_buying_company OR $sl_company == $company.id_group_buying_company)} selected="selected"{/if}>{$company.company_name|escape:'htmlall':'UTF-8'}</option>
				{/foreach}
			</select>
			<sup>*</sup>
		</p>
		<p class="required select">
			<label for="group_buying_promotion">{l s='Promotion' mod='groupbuyingreg'}</label>
			<select name="group_buying_promotion" id="group_buying_promotion" style="width:163px">
				<option value="">-</option>
				{foreach from=$group_buying_promotions item=promotion}
						<option value="{$promotion.id_group_buying_company}" {if ($id_group_buying_promotion == $promotion.id_group_buying_promotion OR $sl_promotion == $promotion.id_group_buying_promotion)} selected="selected"{/if}>{$promotion.promotion_short_desc|escape:'htmlall':'UTF-8'}</option>
				{/foreach}
			</select>
			<sup>*</sup>
		</p>
		<p class="required textarea">
			<label for="other">{l s='Coupon code' mod='groupbuyingreg'}</label>
				<textarea name="group_buying_coupon_code" id="group_buying_coupon_code" style="width:158px" rows="3">{if isset($smarty.post.group_buying_coupon_code)}{$smarty.post.group_buying_coupon_code}{else}{$coupon_codes}{/if}</textarea>
				<sup>*</sup>
		</p>
		<p class="required text">
			<label for="securityKey">{l s='Security Key' mod='groupbuyingreg'}</label>
			<input type="text" name="staf_skey" style="width: 40px;" maxlength="5" />
			<sup>*</sup>
			&nbsp;&nbsp;<img id="securitykey_img" src="{$modules_dir}sendtoafriend/createsecureimage.inc.php?rnd={$staf_rnd}&cl={$staf_codelen}&type=1" align="absmiddle" style="border:solid 1px #003C74;" width="70" height="20" />
			<input type="hidden" name="staf_rnd" value="{$staf_rnd}">
		</p>
		<p class="required required_desc">
			<span><sup>*</sup>{l s='Required field' mod='groupbuyingreg'}</span>
		</p>
		<p class="submit">
			<input type="submit" name="submitUpdateReg" value="{l s='Save' mod='groupbuyingreg'}" class="button" />
		</p>
	</fieldset>
	</form>
	<ul class="footer_links">
		<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.png" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='groupbuyingreg'}</a></li>
		<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.png" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='groupbuyingreg'}</a></li>
	</ul>
</div>
